#ifndef gamepads_UDP_H
#define gamepads_UDP_H


#include "ofMain.h"
#include "ofxNetwork.h"
#include "playersManager.h"
#include "playerMessage.h"

#include <list>
using namespace std;

class gamepadsUDP
{
private:
	ofxUDPManager udpConnection;
	playersManager* myPlayersManager;
	ofxUDPManager udpSendToTeamA;
	ofxUDPManager udpSendToTeamB;
	list<playerMessage>		L;
public:
	gamepadsUDP(playersManager* _myPlayersManager,int portReceive,string ipSendTeamA,string ipSendTeamB,int portSend);
	~gamepadsUDP();
	void update();
	void sendDeadPlayer(int id,int team, int status);

};
#endif